import Vue from 'vue'
import Router from 'vue-router'

import searchlist from "@/components/searchlist.vue"
import home from "@/components/home.vue"
import songlist from "@/components/songlist.vue"
import suggestlist from "@/components/suggestlist.vue"
import singer from "@/components/singer.vue"
import member from "@/components/member.vue"
import singerlist from "@/components/singerlist.vue"
Vue.use(Router)

export default new Router({
	linkActiveClass:'active',
  routes: [
    {
      path: '/searchlist',
 
      component: searchlist
    },
    {
			path: '/home',
			component: home
		},
		{
			path: '/songlist/:id',
			component: songlist
		},
		{
			path: '/singerlist/:id',
			component: singerlist
		},
		{
			path: '/singer',
			component: singer
		},
		{
			path: '/member',
			component: member
		},
		{
			path: '/suggestlist',
			component: suggestlist
		},
		{
			path: '/',
			redirect: '/home'
		}
	
  ]
})
